package com.yanqu.road.entity.manor;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.Objects;
import java.util.List;

/**
 * @author ：zfr
 * @date ：2021/5/10 18:04
 */
public class ManorGuestData extends DataObject {
    private long userId;
    private int id;
    private int skinId;
    private List<Integer> skinIdList = new ArrayList<>();
    private String extendParam;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getExtendParam() {
        return extendParam;
    }

    public void setExtendParam(String extendParam) {
        if (!Objects.equals(extendParam, this.extendParam)) {
            this.extendParam = extendParam;
            setUpdateOption();
        }
    }

    public List<Integer> getSkinIdList() {
        return skinIdList;
    }

    public int getSkinId() {
        return skinId;
    }

    public void setSkinId(int skinId) {
        if (this.skinId != skinId) {
            this.skinId = skinId;
            setUpdateOption();
        }
    }

    public void addSkinId(int skinId) {
        this.getSkinIdList().add(skinId);
        setUpdateOption();
    }

    public void setSkinIdList(List<Integer> skinIdList) {
        this.skinIdList = skinIdList;
        setUpdateOption();
    }
}
